import request from '@/utils/request'

// 查询列表
export function expertUse(query) {
    return request({
        url: '/businessWorkbench/expertUse/list',
        method: 'get',
        params: query
    })
}

// 查询详情
export function expertUseInfo(id) {
    return request({
        url: '/businessWorkbench/expertUse/' + id,
        method: 'get',
    })
}

// 修改
export function updateExpertUse(data) {
    return request({
        url: '/businessWorkbench/expertUse',
        method: 'put',
        data: data
    })
}


// 导出
export function exportExpert(query) {
    return request({
        url: '/businessWorkbench/expertUse/export',
        method: 'get',
        params: query
    })
}

// 删除
export function delExpert(id) {
    return request({
        url: '/businessWorkbench/expertUse/' + id,
        method: 'delete'
    })
}

// 自动抽取
export function autoExtract(data) {
    return request({
        url: '/businessWorkbench/expertUse/autoExtract',
        method: 'post',
        data: data
    })
}


// 使用列表
export function expertList(query) {
    return request({
        url: '/businessWorkbench/expertUse/expertList',
        method: 'get',
        params: query
    })
}

//新增
export function addexpertList(data) {
    return request({
        url: '/businessWorkbench/expertUse',
        method: 'post',
        data: data
    })
}

// 查询详情
export function isUseCompanyExpert(businessId) {
    return request({
        url: '/businessWorkbench/expertUse/getIsUseCompanyExpert/' + businessId,
        method: 'get',
    })
}